CREATE TABLE [dbo].[Book_Tag]
(
[BookId] [int] NOT NULL,
[TagId] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Book_Tag] ADD CONSTRAINT [PK_Book_Tag] PRIMARY KEY CLUSTERED  ([BookId], [TagId]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[Book_Tag] ADD CONSTRAINT [FK_Book_Tag_Book] FOREIGN KEY ([BookId]) REFERENCES [dbo].[Book] ([Id])
GO
ALTER TABLE [dbo].[Book_Tag] ADD CONSTRAINT [FK_Book_Tag_Tag] FOREIGN KEY ([TagId]) REFERENCES [dbo].[Tag] ([Id])
GO
